package cn.jdy.plugins.web;

import java.io.BufferedReader;
import java.io.Console;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


import cn.jdy.common.ctrl.BaseCtrl;
import cn.jdy.framework.log.BaseLog;
import cn.jdy.platform.entity.News;
import cn.jdy.platform.service.NewsService;



/**
 * 网站首页
 *
 * @author yuyf
 * @date 2014-03-12
 */
@RestController
@RequestMapping("/")
public class IndexCtrl extends BaseCtrl {


	
	
	/**
   * 首页-处理老链接
   */
//  @RequestMapping("index.html")
//  public ModelAndView forIndexold() {
//    return new ModelAndView("redirect:");// 将之前index.html 的权重传递给域名
//  }
// 

	  /**
	   * 临时
		 * 首页
		 */
		@RequestMapping("/index")
		public ModelAndView indexes() {
			ModelAndView mv = new ModelAndView("/index.jsp");
			return mv;
		}
			
	/**
	 * 市局
	 * 
	 * 首页
	 */
	@RequestMapping({"","index.html"})
	public ModelAndView index() {
		ModelAndView mv = new ModelAndView("/index.jsp");

		return mv;
	}


}
